package com.luzhikun.path.com.luzhikun.myExamSystem.model;

/**
 * ClassName: User
 * Description:
 * date: 2021/4/22 20:11
 *
 * @author luzhikun
 * @since JDK 1.8
 */

/**
 * 用户类
 */
public class User {
    private int userId;
    private String userName;
    private String password;
    private String sex;
    private String email;

    public User() {
    }

    public User(int userId, String userName, String password, String sex, String email) {
        this.userId = userId;
        this.userName = userName;
        this.password = password;
        this.sex = sex;
        this.email = email;
    }

    public User(String userName, String password, String sex, String email) {
        this.userName = userName;
        this.password = password;
        this.sex = sex;
        this.email = email;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", sex='" + sex + '\'' +
                ", email='" + email + '\'' +
                '}';
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
}
